package com.example.administrator.nl.adapter;

import android.support.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.administrator.nl.R;
import com.example.administrator.nl.bean.MyServerBean;

import java.util.List;

public class MyServerAdapter  extends BaseQuickAdapter<MyServerBean,BaseViewHolder>{
    public MyServerAdapter(int layoutResId, @Nullable List<MyServerBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MyServerBean item) {
        TextView tv_content =helper.getView(R.id.tv_content);
        tv_content.setText(item.getContent());
        helper.addOnClickListener(R.id.ll_label);
    }
}
